//
//  JMFormDescriptorCell.h
//  SYPerfectDemo
//
//  Created by Lssyyy on 2019/7/31.
//  Copyright © 2019年 Lssyyy. All rights reserved.
//

#import <UIKit/UIKit.h>


@class JMFormRowDescriptor;
@class JMFormViewController;

@protocol JMFormDescriptorCell <NSObject>

@required

@property (nonatomic, weak) JMFormRowDescriptor * rowDescriptor;
-(void)configure;
-(void)update;

@optional

+(CGFloat)formDescriptorCellHeightForRowDescriptor:(JMFormRowDescriptor *)rowDescriptor;
-(BOOL)formDescriptorCellCanBecomeFirstResponder;
-(BOOL)formDescriptorCellBecomeFirstResponder;
-(void)formDescriptorCellDidSelectedWithFormController:(JMFormViewController *)controller;
-(NSString *)formDescriptorHttpParameterName;


-(void)highlight;
-(void)unhighlight;


@end
